package io.gitee.zhangbinhub.admin.resource.server.nami.filter

import io.gitee.zhangbinhub.acp.cloud.tools.CloudTools
import org.noear.nami.Filter
import org.noear.nami.Invocation
import org.noear.nami.Result

class NamiHeaderFilter : Filter {
    override fun doFilter(inv: Invocation): Result {
        inv.headers.putAll(CloudTools.transmitHeaders())
        return inv.invoke();
    }
}